﻿@{ 
    WebApp.Settings.JsonSettings jsonSettingsData = WebApp.Settings.JsonSettings.ReadFromJson();
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <title>@ViewBag.Title - Accufind CMS</title>

    @Styles.Render("~/Content/uicss")
    @Styles.Render("~/Content/themes/base/css")
    @Styles.Render("~/Content/uicssextra")
    @Styles.Render("~/Content/uicsscustom")
    @Scripts.Render("~/bundles/modernizr")

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body class="hold-transition skin-accufind-light sidebar-collapse sidebar-mini">
    <div class="wrapper">
        <!-- Main Header -->
        <header class="main-header">
            <!-- Logo -->
            <a href="@Url.Action("Website","Home")" target="_blank" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini"><img src="~/img/accufind-logo-mini.png" /></span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg"><img src="~/img/accufind-logo.png" /></span>
            </a>
            <!-- Header Navbar -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>
                <!-- Navbar Right Menu -->
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        
                        <!-- User Account Menu -->
                        @Html.Partial("_LoginPartial")
                    </ul>
                </div>
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <section class="sidebar">
                <!-- Sidebar Menu -->
                <ul class="sidebar-menu">
                    <li class="header">ACCUFIND CMS</li>
                    <li class="active"><a href="@Url.Action("Index","ClientProfile")"><i class="fa fa-group"></i> <span>@jsonSettingsData.ExistingAppMenuNames.ClientManagement</span></a></li>
                    <li><a href="@Url.Action("PageEmbed","Tracking")"><i class="fa fa-map-marker"></i> <span>@jsonSettingsData.ExistingAppMenuNames.RealtimeTracking</span></a></li>
                    <li><a href="@Url.Action("PageEmbed","Report")"><i class="fa fa-file-pdf-o"></i> <span>@jsonSettingsData.ExistingAppMenuNames.ReportManagement</span></a></li>
                    @if (Request.IsAuthenticated && User.IsInRole("Administrator"))
                    {
                        <li><a href="@Url.Action("Index", "User")"><i class="fa fa-sitemap"></i> <span>@jsonSettingsData.ExistingAppMenuNames.UserManagement</span></a></li>
                    }
                </ul><!-- /.sidebar-menu -->
            </section>
            <!-- /.sidebar -->
        </aside>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Main content -->
            <section class="content">
                <!-- Main Page Content Here -->
                <div id="main-content-panel" class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">@ViewBag.Title</h3>
                    </div>
                    <div class="box-body">
                        @RenderBody()
                    </div>
                </div>
            </section><!-- /.content -->
        </div><!-- /.content-wrapper -->
        <!-- Main Footer -->
        <footer class="main-footer">
            <div class="container">
                <div class="pull-right hidden-xs">
                    @if (!jsonSettingsData.FooterLinks.TermsOfService.IsEmpty())
                    {
                        <a href="@jsonSettingsData.FooterLinks.TermsOfService.Url" target="_blank">@jsonSettingsData.FooterLinks.TermsOfService.Name</a>
                    }
                    else
                    {
                        <a href="#" target="_blank">&nbsp;</a>
                    }
                </div>
                <strong>&copy; @DateTime.Now.Year - <a href="@jsonSettingsData.FooterLinks.CopyRightLink.Url">&nbsp;@jsonSettingsData.FooterLinks.CopyRightLink.Name</a></strong> &nbsp;
            </div><!-- /.container -->
        </footer>      
    </div><!-- ./wrapper -->

    <!-- REQUIRED JS SCRIPTS -->
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    @Scripts.Render("~/bundles/uijs")
    @Scripts.Render("~/bundles/uijsextra")
    @Scripts.Render("~/bundles/uijscustom")
    <script>
        $(function () {
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%'
            });
            refreshAppSizes();
            $(window).resize(function () {
                refreshAppSizes();
            });
        });

        function refreshAppSizes() {
            $('#main-content-panel').height((parseInt($("body > .wrapper > .content-wrapper").css("min-height"))-35) + "px");
        }
    </script>
    @RenderSection("scripts", required: false)

</body>
</html>